package com.xbongbong.saas.domain.entity;

import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author 徐俊杰
 * @date 2020/2/24 9:43
 * @since v1.0
 */
@Setter
@Getter
@ToString
public class PayBalanceUserEntity extends UserTeamEntity {
    private static final long serialVersionUID = 4020039941421414964L;
    //因为完全从供应商团队同步，索引主键id不需要 自增
    /**
     * 供应商ID
     */
    private Long supplierId;

    public PayBalanceUserEntity() {
    }

    public PayBalanceUserEntity(Long supplierId, String corpid, String userId, String userName, String userAvatar, Long dataId, Integer isMain, Integer del) {
        this.supplierId = supplierId;
        this.setDataId(dataId);
        this.setCorpid(corpid);
        this.setUserId(userId);
        this.setUserName(userName);
        this.setUserAvatar(userAvatar);
        this.setIsMain(isMain);
        this.setDel(del);
        long now = DateTimeUtil.getInt();
        this.setAddTime(now);
        this.setUpdateTime(now);
    }
}
